const router = require('koa-router')()


module.exports = (app) => {
  router.post('/user/login',require('./user').login)

  router.post('/user/register',require('./user').register)
  router.post('/user/getStudentList',require('./user').getStudentList)
  router.post('/user/getTeacherList',require('./user').getTeacherList)
  router.post('/user/getQueBank',require('./user').getQueBank)
  router.post('/user/edit',require('./user').edit)
  router.post('/user/del',require('./user').del)
  router.post('/user/uploadQueBank',require('./user').uploadQueBank)
  
  router.post('/user/getTopic',require('./user').getTopic)
  router.post('/user/createTextPaper',require('./user').createTextPaper)
  router.post('/user/releaseExam',require('./user').releaseExam)
  router.post('/user/getClasses',require('./user').getClasses)
  router.post('/user/getTeacher',require('./user').getTeacher)
  router.post('/user/getTextPaper',require('./user').getTextPaper)
  router.post('/user/createExamFile',require('./user').createExamFile)
  router.post('/user/getExamFile',require('./user').getExamFile)
  router.post('/user/editExamFile',require('./user').editExamFile)
  router.post('/user/createTopic',require('./user').createTopic)
  router.post('/user/getMarkTextPaperInf',require('./user').getMarkTextPaperInf)
  router.post('/user/getAnswerSheet',require('./user').getAnswerSheet)
  router.post('/user/getexamInf',require('./user').getexamInf)
  router.post('/user/getSubjectScoreTable',require('./user').getSubjectScoreTable)
  router.post('/user/getAllExamInf',require('./user').getAllExamInf)
  router.post('/user/getTotalScoreTable',require('./user').getTotalScoreTable)
  
  router.post('/user/getStuExamFile',require('./user').getStuExamFile)
  router.post('/user/getExamPaper',require('./user').getExamPaper)
  router.post('/user/uploadExamInf',require('./user').uploadExamInf)
  router.post('/user/getCompletedStuExamInf',require('./user').getCompletedStuExamInf)
  router.post('/user/automaticCorrectPapers',require('./user').automaticCorrectPapers)
  router.post('/user/getViewTextPaper',require('./user').getViewTextPaper)
  router.post('/user/collectTopic',require('./user').collectTopic)
  router.post('/user/getCollectionStructure',require('./user').getCollectionStructure)
  router.post('/user/collectionStructure',require('./user').collectionStructure)
  router.post('/user/getcollectTopicNum',require('./user').getcollectTopicNum)
  router.post('/user/getCollectTopic',require('./user').getCollectTopic)
  router.post('/user/cancelCollection',require('./user').cancelCollection)
  router.post('/user/getExamTime',require('./user').getExamTime)
  
  
  
  app
    .use(router.routes())
    .use(router.allowedMethods())
}